<?php /* Smarty version 2.6.16, created on 2013-09-10 22:43:51
         compiled from ../templates/default/header2.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strtolower', '../templates/default/header2.tpl', 43, false),array('modifier', 'ucfirst', '../templates/default/header2.tpl', 43, false),)), $this); ?>
<?php echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/ajax.js" type="text/javascript" ></script>'; ?>

<?php echo '
<script type="text/javascript">
function followusfunction(pageURL,title)
{
	window.open(pageURL,\'_blank\');	
}

function tradecatfunction(catname)
{

	var newcatname = catname;
	var stringreplace = newcatname.replace(/ /g,"-");
	var stringreplace1 = stringreplace.replace(/&/g,"and");
	var stringreplace2 = stringreplace1.toLowerCase();
	//window.location.href=SITEROOT +\'/\'+stringreplace2;
	window.location.href=SITEROOT+\'/findtradesmans/\'+stringreplace2;
}
</script>
'; ?>


</head>
<body>
<!-- HEADER GOES HERE -->
<header>
	<section class="maincontainer">
    	<section class="topportion">
        	<section class="logo">
            <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/">
	         <?php if ($this->_tpl_vars['imageDetails'] != ''): ?>
                <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=280&amp;height=82&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/logo/<?php echo $this->_tpl_vars['imageDetails']; ?>
"/>
              <?php else: ?>
                 <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/logo.png" />
              <?php endif; ?>
            </a></section>
            <section class="topright">
            <?php if ($_SESSION['getbids_id'] == ''): ?>	
            	<section class="top_tradesmen"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/register/"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/provider-signup-get-bids.png" /></a></section>

            <?php else: ?>
            	<section class="top_tradesmen" >Welcome <a <?php if ($_SESSION['user_type'] == '3'): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/" <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/profile/<?php echo ((is_array($_tmp=$this->_tpl_vars['comapnyname'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?>
" <?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['getuserdet']['first_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 </a><?php if ($this->_tpl_vars['getuserdet']['user_type'] == '4'): ?> | <?php echo $this->_tpl_vars['getuserdet']['planname']; ?>
 | <?php if ($this->_tpl_vars['getuserdet']['plannid'] != '1'): ?> Lead Balance (<?php echo $this->_tpl_vars['getuserdet']['leads']; ?>
) <?php else: ?> Account balance: $<?php echo $this->_tpl_vars['getuserdet']['planamount'];  endif;  endif; ?> | <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/signin/signout/">Logout</a></section>
            <?php endif; ?>    <!--<?php if ($this->_tpl_vars['getuserdet']['user_type'] == '4'): ?> | <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/">Left Leads (<?php echo $this->_tpl_vars['getuserdet']['leads']; ?>
)</a><?php endif; ?>-->
            </section>
            <section class="clear"></section>
        </section>
    </section>
    <nav>
    	<section class="maincontainer">
        	<section class="navi_left">
            	<ul class="topmenu">
                	<li class="item1"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/" <?php if ($this->_tpl_vars['active'] == 'home' || $this->_tpl_vars['active'] == ''): ?> class="select" <?php endif; ?>>Home</a></li>
                    <?php if ($_SESSION['user_type'] == '3'): ?>	  <li class="item2"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/post-a-job/" <?php if ($this->_tpl_vars['active'] == 'postajob'): ?> class="select" <?php endif; ?>>Post A Job</a></li> <?php endif; ?>
                    <?php if ($_SESSION['user_type'] == '4' || $_SESSION['user_type'] == ''): ?> <li class="item3"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/findjobs/" <?php if ($this->_tpl_vars['active'] == 'findjobs'): ?> class="select" <?php endif; ?>>Find A Job</a></li><?php endif; ?>					
                    <?php if ($_SESSION['user_type'] == '3' || $_SESSION['user_type'] == ''): ?><li class="item4"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/findtradesman/" <?php if ($this->_tpl_vars['active'] == 'findatradesman'): ?> class="select" <?php endif; ?>>FIND A LOWER COST SUPPLIER</a></li> <?php endif; ?>
                    <li class="item5"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/how-it-works/" <?php if ($this->_tpl_vars['active'] == 'howitworks'): ?> class="select" <?php endif; ?>>How It Works</a></li>
                    <li class="item6"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/contactus/" <?php if ($this->_tpl_vars['active'] == 'contactus'): ?> class="select" <?php endif; ?>>CONTACT US</a></li>
                    <li class="item9"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/blogs/" <?php if ($this->_tpl_vars['active'] == 'blogs'): ?> class="select" <?php endif; ?>>Blogs</a></li>
                    <?php if ($_SESSION['getbids_id'] == ''): ?>	
                    <li class="item7"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/signin/" <?php if ($this->_tpl_vars['active'] == 'login'): ?> class="select" <?php endif; ?>>LOGIN</a></li>
                    <?php endif; ?>
                    <?php if ($_SESSION['getbids_id'] != ''): ?>	
                    <li class="item8"><a <?php if ($_SESSION['user_type'] == '3'): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/" <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/profile/<?php echo ((is_array($_tmp=$this->_tpl_vars['comapnyname'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?>
" <?php endif; ?> <?php if ($this->_tpl_vars['active'] == 'myaccount'): ?> class="select" <?php endif; ?>>My Account</a></li>
                    <?php endif; ?>
                </ul>
            </section>
        </section>
    </nav>
</header>